import java.io.UnsupportedEncodingException;
import java.util.Base64;

/**
 * @author: ivan.yao<haif.yao@gmail.com>
 * @date: 16/9/13.
 */
public class T {

    public static void main(String[] args) throws UnsupportedEncodingException {
        final Base64.Encoder encoder = Base64.getEncoder();
        final String text = "100001:x-cg73y#v@29p68sq5du";
        final byte[] textByte = text.getBytes("UTF-8");
        final String encodedText = encoder.encodeToString(textByte);
        System.out.println(encodedText);
    }

}
